<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>预定义常量</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="zlib.resources.html">« 资源类型</a></li>
      <li style="float: right;"><a href="zlib.examples.html">范例 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.zlib.html">Zlib</a></li>
    <li>预定义常量</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="zlib.constants" class="appendix">
 <h1>预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>
  
   <dt id="constant.force-gzip">
    <strong><code>FORCE_GZIP</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.force-deflate">
    <strong><code>FORCE_DEFLATE</code></strong> 
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     
    </span>
   </dd>

  
  
   <dt id="constant.zlib-encoding-raw">
    <strong><code>ZLIB_ENCODING_RAW</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     DEFLATE algorithm as per RFC 1951.
    </span>
   </dd>

  
  
   <dt id="constant.zlib-encoding-deflate">
    <strong><code>ZLIB_ENCODING_DEFLATE</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     ZLIB compression algorithm as per RFC 1950.
    </span>
   </dd>

  
  
   <dt id="constant.zlib-encoding-gzip">
    <strong><code>ZLIB_ENCODING_GZIP</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
     GZIP algorithm as per RFC 1952.
    </span>
   </dd>

  
  
   <dt id="constant.zlib-filtered">
    <strong><code>ZLIB_FILTERED</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.zlib-huffman-only">
    <strong><code>ZLIB_HUFFMAN_ONLY</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.zlib-fixed">
    <strong><code>ZLIB_FIXED</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.zlib-rle">
    <strong><code>ZLIB_RLE</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.zlib-default-strategy">
    <strong><code>ZLIB_DEFAULT_STRATEGY</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.zlib-block">
    <strong><code>ZLIB_BLOCK</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.zlib-no-flush">
    <strong><code>ZLIB_NO_FLUSH</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.zlib-partial-flush">
    <strong><code>ZLIB_PARTIAL_FLUSH</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.zlib-sync-flush">
    <strong><code>ZLIB_SYNC_FLUSH</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">
 
    </span>
   </dd>

  
  
   <dt id="constant.zlib-full-flush">
    <strong><code>ZLIB_FULL_FLUSH</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
  
   <dt id="constant.zlib-finish">
    <strong><code>ZLIB_FINISH</code></strong>
    (<span class="type">int</span>)
   </dt>

   <dd>

    <span class="simpara">

    </span>
   </dd>

  
 </dl>

</div>
</div></div></body></html>